﻿<%@ Page Language="C#" MasterPageFile="~/PortalMaster.Master" AutoEventWireup="true"
    Codebehind="NetApplyInvoice.aspx.cs" Inherits="Ankin.EHBH.Web.Portal.NetApplyInvoice"
    Title="医用耗材管理系统" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">

    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../js/jquery.flexselect.js" type="text/javascript"></script>

    <script src="../js/liquidmetal.js" type="text/javascript"></script>

    <script src="../js/popup.js" type="text/javascript"></script>

    <script type="text/javascript">
      $(document).ready(function() {
        $("select[class*=flexselect]").flexselect();
        
        
        //获取供应商文本
        $('#ctl00_cphcenter_ddlSupply_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlSupply_flexselect').attr('value');
        $('#ctl00_cphcenter_hdfSupply').attr('value',tt);
        })
        
        //获取产品名
        $('#ctl00_cphcenter_ddlExp_Name_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlExp_Name_flexselect').attr('value');
                    if(tt!="")
            {
            $("#ctl00_cphcenter_ddlExpName2").setSelectedText(tt);
            
            //得到选中索引
            //var index=$("#ctl00_cphcenter_ddlExpName2").getSelectedIndex();
            
            //$("#ctl00_cphcenter_ddlExpName2")[0].options(index).selected = true;
            
            //触发onchang事件
            $("#ctl00_cphcenter_ddlExpName2").change();
        }
        $('#ctl00_cphcenter_hdfExp_Name').attr('value',tt);
        })
        
        /*测试COOKIES*/
        if($.cookie('popupStatus')==1)
        {
            disablePopup();
            centerPopup();
            loadPopup();
        }
        //写Cookies
        $('#wCookies').click(function(){
		$.cookie('name', 'test11213',{expires: 7});				  
		});
		//读Cookies
		$('#rCookies').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		
		$('#rCookies1').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		//删除
		$('#dCookies').click(function(){
		$.cookie('popupStatus', '0',{expires: 7});							  
		});
		
      });




    </script>

    <table width="650" border="1">
        <tbody>
            <tr>
                <td>
                    医用耗材请领</td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td style="height: 234px">
                    <table cellspacing="0" cellpadding="0" width="100%" border="1">
                        <tbody>
                            <tr>
                                <td colspan="7">
                                    医用耗材请领信息</td>
                            </tr>
                            <tr>
                                <td style="width: 82px">
                                    申请单号</td>
                                <td style="width: 211px">
                                    <asp:Label ID="lblBillID" runat="server" Text="Label"></asp:Label></td>
                                <td style="width: 84px">
                                    申请日期</td>
                                <td style="width: 104px">
                                    &nbsp;<asp:Label ID="lblDate" runat="server" Text="Label"></asp:Label></td>
                                <td style="width: 67px">
                                    申请类型</td>
                                <td style="height: 45px" colspan="2">
                                    <asp:Label ID="lblApply_Type" runat="server" Text="Label"></asp:Label>&nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    申请部门</td>
                                <td>
                                    &nbsp;<div style="display: none">
                                        <asp:Label ID="lblDept" runat="server" Text="Label"></asp:Label>&nbsp;</div>
                                </td>
                                <td>
                                    下属部门</td>
                                <td style="width: 104px">
                                    <asp:Label ID="lblDownDept" runat="server"></asp:Label></td>
                                <td style="width: 67px">
                                    申请人</td>
                                <td colspan="2">
                                    <asp:Label ID="lblApplier" runat="server" Text="Label"></asp:Label></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp; &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tbody>
                            <tr>
                                <td style="height: 18px">
                                    请领单明细</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="grvApplyDetail" runat="server" AutoGenerateColumns="False" DataKeyNames="INFO_ID" OnRowCreated="grvApplyDetail_RowCreated" OnRowDataBound="grvApplyDetail_RowDataBound" OnRowDeleting="grvApplyDetail_RowDeleting">
                                        <Columns>
                                            <asp:BoundField HeaderText="基本信息号" DataField="INFO_ID" />
                                            <asp:BoundField HeaderText="产品代码" />
                                            <asp:BoundField HeaderText="产品名称" />
                                            <asp:BoundField HeaderText="规格型号" />
                                            <asp:BoundField HeaderText="产品分类" />
                                            <asp:BoundField HeaderText="批发价" />
                                            <asp:BoundField HeaderText="建议零售价" />
                                            <asp:BoundField HeaderText="单位" />
                                            <asp:TemplateField HeaderText="申请数量">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtQuan" runat="server" AutoPostBack="true" OnKeyPress="if(((event.keyCode>=48)&&(event.keyCode <=57) )) {event.returnValue=true;} else{event.returnValue=false;}" OnTextChanged="txtQuan_TextChanged"></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:CommandField ShowDeleteButton="True" />
                                        </Columns>
                                    </asp:GridView>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="height: 19px" align="right">
                                    <asp:Button ID="btnBakChoose" runat="server" OnClick="btnBakChoose_Click" Text="继续选择产品" /></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnSaveApply" runat="server" Text="提交请领单" OnClick="btnSaveApply_Click"></asp:Button>
                    <asp:Button ID="btnCancel" runat="server" Text="清空"></asp:Button>
                    &nbsp; &nbsp;&nbsp;<br />
                    &nbsp;&nbsp;
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
